package com.ziytek.web.citizen.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsAutoIncrement;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.ziytek.web.citizen.constant.TableConstant;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author fenghx
 * @version 1.0
 * @className LocalCapacityTable
 * Description:
 * @date 2024/3/18 13:19
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = TableConstant.TABLE_LOCAL_CAPACITY)
public class LocalCapacityTable {

    @TableId(type = IdType.AUTO)
    @IsKey
    @IsAutoIncrement
    @Column
    private Integer id;

    @Column(name = "createTime", comment = "创建时间")
    private Long createTime;

    @Column(name = "updateTime", comment = "修改时间")
    private Long updateTime;

    @Column(name = "cabinetNo", comment = "机柜编号")
    private String cabinetNo;

    /**
     * key 组成 通信板地址,分控板地址,电芯位置
     */
    @Column(name = "key", comment = "key 组成 通信板地址,分控板地址,电芯位置")
    private String key;

    /**
     * 电池容量
     */
    @Column(name = "capacity", comment = "电池容量")
    private Float capacity;

}
